package com.scm.dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBC
{
	private Connection conn = null;

	public Connection getConn()
	{
		try
		{
			Class.forName("com.mysql.jdbc.Driver");
			String url = "jdbc:mysql://localhost:3306/scm" +
					"?useUnicode=true&characterEncoding=utf-8";
			String user = "root";
			String password = "root";
			conn = DriverManager.getConnection(url, user, password);
		}
		catch (Exception e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return conn;
	}
}
